﻿using TSL.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Lottery.Test
{
    
    
    /// <summary>
    ///这是 PassWordTest 的测试类，旨在
    ///包含所有 PassWordTest 单元测试
    ///</summary>
    [TestClass()]
    public class PassWordTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///获取或设置测试上下文，上下文提供
        ///有关当前测试运行及其功能的信息。
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        /// <summary>
        ///deUserPW 的测试
        ///</summary>
        [TestMethod()]
        public void deUserPWTest()
        {
            string password = "ben"; // TODO: 初始化为适当的值
            int mode = -1; // TODO: 初始化为适当的值
            string expected = "ben"; // TODO: 初始化为适当的值
            string actual;
            actual = PassWord.deUserPW(password, mode);
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///md5 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("TSL.Common.dll")]
        public void md5Test()
        {
            string str = string.Empty; // TODO: 初始化为适当的值
            int code = 0; // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            actual = PassWord_Accessor.md5(str, code);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
    }
}
